package mdt.ext;

import org.tigris.gef.presentation.FigCircle;
import mdt.action.SetFigShapeAttrAction;

import javax.swing.*;
import java.awt.*;
import java.awt.event.MouseEvent;
import java.util.Vector;

/**
 * Created by xiaobyu on 7/19/2016.
 */
public class FigCircleExt extends FigCircle{


    private static final long serialVersionUID = 3549592854605751089l;

    public FigCircleExt(Rectangle rect) {
        super(rect.x, rect.y, rect.width, rect.height);
    }

    public FigCircleExt(int x, int y, int w, int h) {
        super(x, y, w, h);
    }

    public FigCircleExt(int x, int y, int w, int h, Color lColor, Color fColor) {
        super(x, y, w, h, lColor, fColor);
    }

    public FigCircleExt(int x, int y, int w, int h, boolean resizable) {
        super(x, y, w, h, resizable);
    }

    public FigCircleExt(int x, int y, int w, int h, boolean resizable, Color lColor, Color fColor) {
        super(x, y, w, h, resizable, lColor, fColor);
    }

    public Vector getPopUpActions(MouseEvent me) {
        Vector popUpActions = super.getPopUpActions(me);
        popUpActions.add(new JSeparator());
        popUpActions.add(new JMenuItem(new SetFigShapeAttrAction()));
        return popUpActions;
    }
}
